//
//  LCDefine.h
//  LCPackage
//
//  Created by 马军凯 on 2021/6/22.
//  Copyright © 2021 龙采科技集团. All rights reserved.
//
//  定义宏变量

#ifndef LCDefine_h
#define LCDefine_h

//版本
#define IOS13   @available(iOS 13.0, *)
#define IOS15   @available(iOS 15.0, *)
//获取windows
#define WINDOWS [UIApplication sharedApplication].windows.firstObject
//屏幕宽
#define SCREEN_WIDTH    ([[UIScreen mainScreen] bounds].size.width)
//屏幕高
#define SCREEN_HEIGHT   ([[UIScreen mainScreen] bounds].size.height)
//顶部状态栏的高度
#define STATUS_BAR_HEIGHT (WINDOWS.safeAreaInsets.top)
//naviagtionBar高度
#define NAVIGATION_BAR_HEIGHT 44.f
//navigationBar总高度
#define STATUS_AND_NAVIGATION_BAR_HEIGHT (STATUS_BAR_HEIGHT + NAVIGATION_BAR_HEIGHT)
//tabbar安全区域
#define TAB_BAR_SAFE_MARGIN (WINDOWS.safeAreaInsets.bottom)
//tabbar高度
#define TAB_BAR_HEIGHT (49.f + TAB_BAR_SAFE_MARGIN)

//主色
#define mainColor [UIColor LC_hex:@"#FF0000"]

//弱引用
#define LCWeakSelf __weak typeof(self) weakSelf = self;

//适配
#define HEIGHT(f) ((f) * (SCREEN_WIDTH / 375.0))



//定位信息
#define LAT     [[NSUserDefaults standardUserDefaults] doubleForKey:@"lat"] //纬度
#define LNG     [[NSUserDefaults standardUserDefaults] doubleForKey:@"lng"] //经度



#endif /* LCDefine_h */
